package com.cyys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyys.entity.Adv;
import com.cyys.mapper.AdvMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.cyys.entity.Category;
import com.cyys.mapper.CategoryMapper;
import com.cyys.service.CategoryService;

import java.util.List;

/**
 *
 * @description CategoryServiceImpl
 * @author Administrator
 * @date 2022-05-26 15:09
 */

@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements CategoryService{

    @Resource
    private CategoryMapper categoryMapper;


    @Override
    public List<Category> getById(Integer cid) {
        return categoryMapper.getById(cid);
    }

    @Override
    public List<Category> getStoreId(Integer sid) {
        return categoryMapper.getStoreId(sid);
    }

    @Override
    public List<Category> getListName(String categoryname, Integer storeId) {
        return categoryMapper.getListName(categoryname,storeId);
    }



    @Override
    public List<Category> getByList(Category category) {
        return categoryMapper.getByList(category);
    }
}
